﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECCIT.Data
{
    public class DBFunction
    {
        private static readonly BaseDBHelper.BaseDBFunction ConcreteDBFunction = DBConfigManager.ConcreteDBFunction;

        public static string Length(string columnName)
        {
            return ConcreteDBFunction.Length(columnName);
        }

        public static string Substring(string columnName, int startIndex, int? length)
        {
            return ConcreteDBFunction.Substring(columnName, startIndex, length);
        }

        public static string IsNull(string columnName, object replacementValue)
        {
            return ConcreteDBFunction.IsNull(columnName, replacementValue);
        }

        public static string BooleanEquals(string columnName, bool value)
        {
            return ConcreteDBFunction.BooleanEquals(columnName, value);
        }
    }
}
